package com.link2room.ironhide.entity;

import com.link2room.common.entity.BaseEntity;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Created by sss on 2016/11/30.
 */
@Entity
@Table(name = "import_cc")
public class ImportCc extends BaseEntity{
    public enum ImportCc_{
        col0,col1,col2,col3
    }

    private String col0;
    private String col1;
    private String col2;
    private String col3;

    @Basic
    @Column(name = "col0", nullable = true, length = 100)
    public String getCol0() {
        return col0;
    }

    public void setCol0(String col0) {
        this.col0 = col0;
    }

    @Basic
    @Column(name = "col1", nullable = true, length = 100)
    public String getCol1() {
        return col1;
    }

    public void setCol1(String col1) {
        this.col1 = col1;
    }

    @Basic
    @Column(name = "col2", nullable = true, length = 100)
    public String getCol2() {
        return col2;
    }

    public void setCol2(String col2) {
        this.col2 = col2;
    }

    @Basic
    @Column(name = "col3", nullable = true, length = 100)
    public String getCol3() {
        return col3;
    }

    public void setCol3(String col3) {
        this.col3 = col3;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        ImportCc importCc = (ImportCc) o;

        if (col0 != null ? !col0.equals(importCc.col0) : importCc.col0 != null) return false;
        if (col1 != null ? !col1.equals(importCc.col1) : importCc.col1 != null) return false;
        if (col2 != null ? !col2.equals(importCc.col2) : importCc.col2 != null) return false;
        if (col3 != null ? !col3.equals(importCc.col3) : importCc.col3 != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = col0 != null ? col0.hashCode() : 0;
        result = 31 * result + (col1 != null ? col1.hashCode() : 0);
        result = 31 * result + (col2 != null ? col2.hashCode() : 0);
        result = 31 * result + (col3 != null ? col3.hashCode() : 0);
        return result;
    }
}
